package priv.pront.code.mati.province;

import java.util.Scanner;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-11-17 15:49
 */
public class MC0218_小码哥的开心数字 {

    static String a;
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        a = scanner.next();
        StringBuilder sb = new StringBuilder(a);
        int pre = Integer.parseInt(a);
        int ans = Integer.parseInt(sb.reverse().toString());
        System.out.println(ans);
        System.out.println(ans < pre ? "False" : "True");
    }
}
